Skip to content

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin self-assigned this Jul 28, 2025
@vbabanin vbabanin marked this pull request as ready for review August 10, 2025 06:18
@vbabanin vbabanin requested a review from a team as a code owner August 10, 2025 06:18
@vbabanin vbabanin requested review from nhachicha and rozza and removed request for a team August 10, 2025 06:18
@rozza
Copy link
Member

rozza commented Aug 13, 2025

@vbabanin lots of tests failing after this - are they related or transient?

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged main into this to try and reduce the evergreen noise. Appears the new prose test is failing when run against the reactive streams driver.

*/
@Test
@DisplayName("Should throw MongoOperationTimeoutException when establishing connection in background if timeoutMs expired before starting connect")
public void shouldThrowMongoOperationTimeoutWhenEstablishingConnectionInBackgroundIfTimeoutMsExpiredBeforeStartingConnect() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be failing in reactive streams only and is happy in sync. Does the test need tweaking?

Copy link
Member Author

@vbabanin vbabanin Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced this prose-style test Should throw MongoOperationTimeoutException when establishing connection in background if timeoutMs expired before starting connect with a unit test for the sync driver. Helper for establishing SocketStream's already had this behaviour but no test.

The async implementation doesn’t have this and it’s not strictly required, since it’s unlikely anyone would specify such a low timeout (e.g. 1 ms) that would effectively prevent connections from being established.

@vbabanin vbabanin requested a review from rozza October 1, 2025 16:33
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nhachicha nhachicha removed their request for review October 2, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants